package tagsFilesClientDataBase;
import java.util.HashSet;
import java.util.Set;

/**
 * Tag include tagId ,tag name , and set of files 
 * (many to many relation with Client FILE)
 * @author Orit and Yoav
 */


public class Tag {
	private long tagId;
	private String tagName = "";
	private Set<ClientFile> files = new HashSet<ClientFile>(0);

	//-----------------setters && getters for Tag----------------//
	/**
	 * set tag id 
	 * @param tagId
	 */
	public void setTagId(long tagId) {
		this.tagId = tagId;
	}
	/**
	 * set Tag Name
	 * @param tagName
	 */
	public void setTagName(String tagName) {
		this.tagName = tagName;
	}
	/**
	 * set client Files
	 * @param files
	 */
	public void setFiles(Set<ClientFile> files) {
		this.files = files;
	}
	/**
	 * get Tag Id
	 * @return tag id
	 */
	public long getTagId() {
		return tagId;
	}
	/**
	 * get Tag Name
	 * @return tag name
	 */
	public String getTagName() {
		return tagName;
	}
	/**
	 * get client Files
	 * @return client's files
	 */
	public Set<ClientFile> getFiles() {
		return files;
	}
	/**
	 * 
	 */
	@Override
	public String toString() {		
		return tagName;
	}
}
